import { request } from 'umi';
const PROJECT_NAME = process.env.PROJECT_NAME;


/**
 * 分页列表
 * @param param
 */
 export async function findPage(data: any) {
  return request(`/${PROJECT_NAME}/sys/sysDict/findPage`, { method: 'POST', data });
}

/**
 * 新增
 * @param data
 * @returns
 */
export async function saveObject(data: any) {
  return request(`/${PROJECT_NAME}/sys/sysDict/saveObject`, { method: 'POST', data });
}

/**
 * 修改
 * @param data
 * @returns
 */
export async function updateObject(data: any) {
  return request(`/${PROJECT_NAME}/sys/sysDict/updateObject`, { method: 'POST', data });
}

/**
 * 删除
 * @param param
 */
 export async function fakeDelete(data: any) {
  return request(`/${PROJECT_NAME}/sys/sysDict/fakeDelete`, { method: 'POST', data });
}
